home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCGUIA 117
/
PC Guia 117.iso
/
Software
/
Utils
/
Software2
/
Product11
/
Setup.exe
/
MT-3.16-full-en_US
/
mt-xmlrpc.cgi
< prev
next >
Wrap
Text File
|
2005-03-08
|
805b
|
34 lines
#!/usr/bin/perl -w
# Copyright 2001-2005 Six Apart. This code cannot be redistributed without
# permission from www.movabletype.org.
#
# $Id: mt-xmlrpc.cgi 10197 2005-03-09 00:27:57Z ezra $
use strict;
my($MT_DIR);
BEGIN {
if ($0 =~ m!(.*[/\\])!) {
$MT_DIR = $1;
} else {
$MT_DIR = './';
}
unshift @INC, $MT_DIR . 'lib';
unshift @INC, $MT_DIR . 'extlib';
}
use XMLRPC::Transport::HTTP;
use MT::XMLRPCServer;
$MT::XMLRPCServer::MT_DIR = $MT_DIR;
{
## Shut off warnings, because SOAP::Lite 0.55 causes some
## unitialized value warnings that seem to be connected to
## the soap->action
local $SIG{__WARN__} = sub { };
my $server = XMLRPC::Transport::HTTP::CGI->new;
$server->dispatch_to('blogger', 'metaWeblog', 'mt');
$server->handle;
}